{include file="public/hunanconstr_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/footable/footable.core.css"
	rel="stylesheet">
<link href="__PUBLIC_ADMIN__js/plugins/fancybox/jquery.fancybox.css"
	rel="stylesheet">
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>验收验证</h5>
						<div class="ibox-tools">
							<a href="{:url('admin/Hunanconstr/project_list')}"
								class="btn btn-primary btn-xs">返回列表</a>
						</div>
					</div>
					<div class="ibox-content">
						<div class="row m-b-sm m-t-sm">
							<div class="col-md-1">
								<button type="button" id="loading-example-btn"
									class="btn btn-white btn-sm" onclick="history.go(0)">
									<i class="fa fa-refresh"></i> 刷新
								</button>
							</div>
						</div>

						<table class="footable  table table-stripped toggle-arrow-tiny"
							data-page-size="50" data-filter=#filter>
							<thead>
								<tr>
									<th width="">事件名称</th>
									<th width="">事件时间</th>
									<th>图片
									</td>
									<th width="">审核状态</th>
									<th>操作
									</td>
								</tr>
							</thead>
							<tbody>
								{foreach name="res" id="vo" key="key"}
								<tr class="gradeX">
									<td>{$vo.event_name}</td>
									<td>{if condition="strstr($vo.event_time,
										'-')"}{$vo.event_time} {else /} {/if}</td>
									<td>{if condition="$vo.event_img"} <img
										src="/{$vo.event_img}" width="120"> {else/} 无图片 {/if}
									</td>
									<td>{if condition="$vo.state eq 1"} <a href="#"
										id="huidel"><span class="label label-default">已通过</span></a>
										{elseif condition="$vo.state eq 0"} <a
										href="{:url('admin/Hunanconstr/thumb_examine',['id'=>$vo.id,])}"
										id="huidel"><span class="label label-primary">未审核</span></a>
										{/if}
									</td>
									<td>
										<a onClick="return confirm('确定清除上传记录?');"
										href="{:url('admin/Hunanconstr/memorabiliaDel',['id'=>$vo.id])}"
										class="btn btn-white btn-sm"> 
										清除上传记录 
										</a> 
									</td>
								</tr>
								{/foreach}
							</tbody>
						</table>
						<div class="item-page" style="padding-left: 600px;">{$page}
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	{include file="public/hunanconstr_footer" /}
	<script src="__PUBLIC_ADMIN__js/plugins/footable/footable.all.min.js"></script>
	<!-- 自定义js -->
	<script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>

	<!-- Fancy box -->
	<script src="__PUBLIC_ADMIN__js/plugins/fancybox/jquery.fancybox.js"></script>
	<script>
        $(document).ready(function () {
            $('.fancybox').fancybox({
                openEffect: 'none',
                closeEffect: 'none'
            });
        });
    </script>

	<script>
        $(document).ready(function() {
            $('.footable').footable();
            $('.footable2').footable();
			
            $('.refresh').click(function(){
            	window.location.reload();	// 刷新页面
            })
            
          	//iframe窗
          	$('.edit').click(function(){
          		var index = layer.open({
          			type : 2,
					fixed: true,
					scrollbar: false,
					title : '编辑',
					shadeClose : false,
					maxmin : true, //开启最大化最小化按钮
					area : ['893px', '600px'],
					//offset: '100px',
					content : '{:url("admin/admin/edit")}'
          		});
          		layer.full(index);
          	})
		});
	</script>
</body>
</html>
